package org.Image.management.SpringDataService.Service.Sys_User.Pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateUserNameRequest {
    @NotNull(message = "缺失参数")
    private long userId;

    @NotBlank(message = "用户名不能为空且不能只包含空格")
    @Size(min = 2, max = 20, message = "用户名长度需在2-20字符之间")
    private String newUserName;

}
